package com.collaborativelearning.dummy;

import java.util.ArrayList;
import java.util.List;

public class Management {
	public static final String EMAIL_PATTERN = "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";

	public static final Management INSTANCE = new Management();	
	boolean teacher = false;
	boolean student = false;
	private List<User> users;

	private Management() {
		users = new ArrayList<User>();

		users.add(new User(6240, "mohamed", "mohamed", "mohamed@gmail.com"));
		users.add(new User(5234, "ahmed", "ahmedA", "ahmed@gmail.com"));
	}

	public List<User> getUsers() {
		return users;
	}

	public boolean isTeacher() {
		return teacher;
	}

	public void setTeacher(boolean teacher) {
		this.teacher = teacher;
	}

	public boolean isStudent() {
		return student;
	}

	public void setStudent(boolean student) {
		this.student = student;
	}
	
	
}
